package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clwl.supervise.superviseapp.entity.base.CommonSearchEntity;
import com.clwl.supervise.superviseapp.entity.supervise.JgDailyCheck;
import com.clwl.supervise.superviseapp.entity.supervise.JgUnplannedCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface JgUnplannedCompanyMapper extends BaseMapper<JgUnplannedCompany> {


    Long selectInpectionCount(
            @Param("params")  CommonSearchEntity params
    );

    IPage<Map<String, Object>> selectInpectionPage(Page<Map<String, Object>> iPage,
                                                   @Param("params")  CommonSearchEntity params);


    IPage<Map<String, Object>> selectInspectionResultPage(Page<Map<String, Object>> iPage,
                                                          @Param("params")  CommonSearchEntity params);

    JgDailyCheck selectDailyCheckById(@Param("unplannedCompanyId")  Long unplannedCompanyId);

    List<Map<String, Object>> selectTodoList(@Param("params") CommonSearchEntity params,@Param("companyId") Long companyId);
}